package com.senriot.quickup.service.dto

import com.senriot.cloud.common.AbstractEntityDTO
import com.senriot.quickup.domain.enums.OrderType
import io.swagger.annotations.ApiModelProperty
import java.math.BigDecimal

/**
 * 订单
 * @property id String?
 * @property ordersId String?
 * @property orderType OrderType?
 * @property paymentSystemOrderId String?
 * @property amount BigDecimal?
 * @property storeId String?
 * @property storeName String?
 * @property city String?
 * @property province String?
 * @property status Int
 * @property deviceId String?
 * @property deviceName String?
 * @property type Int
 * @property isCashOut Boolean?
 * @property deliverStatus Boolean?
 * @property name String?
 * @constructor
 */
data class OrderDTO(

        // ("用户能查看的订单号")
        var ordersId: String? = null,

        // ("订单类型")
        @ApiModelProperty("订单类型")
        var orderType: OrderType? = null,

        // ("支付系统内的订单id")
        var paymentSystemOrderId: String? = null,

        // ("订单的实际金额")
        var amount: BigDecimal? = null,

        var storeId: Int? = null,

        var storeName: String? = null,

        var cityName: String? = null,

        var provinceName: String? = null,


        var address: String? = null,

        var status: Int = 0,

        var deviceId: String? = null,

        var deviceName: String? = null,

        var type: Int = 0,
        /**
         * 是否提现
         */
        var isCashOut: Boolean? = null,

        var deliverStatus: Boolean? = null,

        override var name: String? = null,

        /**
         * 提现操作人
         */
        var userName: String? = null

) : AbstractEntityDTO<Long>()
